package io.renren.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.dao.InboxDao;
import io.renren.entity.InboxEntity;
import io.renren.service.InboxService;



@Service("inboxService")
public class InboxServiceImpl implements InboxService {
	@Autowired
	private InboxDao inboxDao;
	
	@Override
	public InboxEntity queryObject(Integer id){
		return inboxDao.queryObject(id);
	}
	
	@Override
	public List<InboxEntity> queryList(Map<String, Object> map){
		return inboxDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return inboxDao.queryTotal(map);
	}
	
	@Override
	public void save(InboxEntity inbox){
		inboxDao.save(inbox);
	}

	@Override
	public void update(InboxEntity inbox){
		inboxDao.update(inbox);
	}
	
	@Override
	public void delete(Integer id){
		inboxDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		inboxDao.deleteBatch(ids);
	}
	
}
